package td.towers
{
	import flash.display.Sprite;
	import flash.display.Graphics;
	
	import td.projectiles.*;
	import td.*;

	/**
	 * IceTower class
	 * 
	 * @author Garth Henson - Guahan Web (garth@guahanweb.com)
	 */
	public class IceTower extends Tower
	{
		/**
		 * Constructor method
		 * 
		 * @constructor
		 * @access public
		 * @param {MagicTD} mtd A reference to the current TD game
		 * @return Tower
		 */
		public function IceTower(mtd :MagicTD,_type:String=null)
		{
			this.type  = 'tower_9';
			this.power = 8;
			this.rate  = 1;
			this.range = 60;
			this.actNum = 3;
			
			super(mtd,_type);
		}
		

		/**
		 * Creates a new bullet to be fired from this tower
		 * 
		 * @access public
		 * @param {Creep} t The target creep
		 * @return IceBullet
		 */
		public override function getNewBullet(t:Creep):Bullet
		{
			var b :IceBullet = new IceBullet(t);
			b.x = this.x;
			b.y = this.y;
			b.setPower(this.power);
			return b;
		}
	}
}